//
//  HCSlideViewModel.m
//  hcpro
//
//  Created by 戴旭 on 2017/4/5.
//  Copyright © 2017年 hucai.com. All rights reserved.
//

#import "HCSlideViewModel.h"
#import "HCLeftMenuItem.h"

@interface HCSlideViewModel()

/** 菜单项数组 */
@property(nonatomic, strong) NSArray *menuItems;

@end

@implementation HCSlideViewModel

- (NSArray *)menuItemsArr{
    if (self.menuItems == nil) {
        // 读取plist
        NSString *path = [[NSBundle mainBundle] pathForResource:@"LeftMenu" ofType:@"plist"];
        NSArray *menuArr = [NSArray arrayWithContentsOfFile:path];
        
        // 转成模型数组
        self.menuItems = [HCLeftMenuItem mj_objectArrayWithKeyValuesArray:menuArr];
    }
    return self.menuItems;
}

@end
